import sys
from PyQt5.QtWidgets import QApplication, QDialog
from view.Ui_sys_config import Ui_SysConfig


class SysConfig(QDialog, Ui_SysConfig):
    def __init__(self):
        super(SysConfig, self).__init__()
        self.setupUi(self)
        # 连接btnExit的clicked信号与on_btnExit槽函数
        self.btnExit.clicked.connect(self.on_btnExit)

    def on_btnExit(self):
        self.close()


if __name__ == '__main__':
    app = QApplication(sys.argv)
    ui = SysConfig()
    ui.show()
    sys.exit(app.exec_())